import request from '../utils/request'

export const lnglatPost = (lnglat)=>{
  return request.post('/classes/LearnLngLat',{'lnglat':lnglat})
}

export const lnglatGet = ()=>{
  return request.get('/classes/LearnLngLat')
}

export const countGet = (cateid)=>{ //统计不同分类的课程数量
  let query = `where={"catelv1":"${cateid}"}&count=1&limit=0`
  return request.get(`/classes/LearnArticle?${query}`)
}